package com.chencs.utils;

import com.chencs.vo.biz.lianmeng.LmUser;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

public class SessionUtils {


    public  static  final  String SESSION_USER ="user";
    /**
     * 获取用户
     * @param session
     * @return
     */
    public static LmUser getUser(HttpSession session){

        LmUser user = (LmUser)session.getAttribute(SessionUtils.SESSION_USER);

        return  user;
    }
}
